# -*- coding: utf-8 -*-
from db.mysql import MysqlClient
from common.helper import Helper
class Arrangement(object):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "个人意外伤害险"
    def pullData(self, data={}):
        for item in Helper.selectData(self.name, self.mysql):
            data["name"] = self.name
            data["company"] = "平安保险"
            data["days"] = "1y"
            data["people_count"] = "1"
            data["accident_death"] = item["accident_death"]
            data["accident_medical"] = item["accident_medical"]
            data["sudden_death"] = item["sudden_death"]
            data["accident_ambulance"] = item["accident_ambulance"]
            data["airplane_death"] = item["airplane_death"]
            data["train_death"] = item["train_death"]
            data["ship_death"] = item["ship_death"]
            data["passenger_death"] = item["passenger_death"]
            data["accident_contagion"] = item["accident_contagion"]
            data["price"] = item["price"]
            Helper.mergeTable( self.name,self.mysql,data )
